package com.prs.crm.vo.gantt;

/**
 * 前置任务
 * @author prs.chenzhi
 *
 */
public class PredecessorTask implements java.io.Serializable{

	private static final long serialVersionUID = 1L;
	
	private static final int DEFAULT_PREDECESSORTYPE = 1;
	
	public static final int TYPE_FF = 0;
	public static final int TYPE_FS = 1;
	public static final int TYPE_SF = 2;
	public static final int TYPE_SS = 3;
	
	/**
	 * 前置任务编号
	 */
	private Integer predecessorUID;
	
	/**
	 * 前置任务类型
	 * 0	FF (finish-to-finish)
1	FS (finish-to-start)
2	SF (start-to-finish)
3	SS (start-to-start)
	 */
	private Integer type;
	
	public PredecessorTask()
	{
	}
	
	public PredecessorTask(Integer predecessorUID)
	{
		this.predecessorUID = predecessorUID;
		this.type = DEFAULT_PREDECESSORTYPE;
	}
	
	public PredecessorTask(Integer predecessorUID,Integer type)
	{
		this.predecessorUID = predecessorUID;
		this.type = type;
	}
	
	public void setPredecessorUID(Integer predecessorUID) {
		this.predecessorUID = predecessorUID;
	}

	public Integer getPredecessorUID() {
		return predecessorUID;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getType() {
		return type;
	}

}
